<%--
  Created by IntelliJ IDEA.
  User: xuyaxi
  Date: 2020-01-29
  Time: 17:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <h2>编辑简历信息</h2>

</head>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<body>
    <div>
        <table title="" style="width:200px;height:100px" border="2px">
            <tr>
                <td align="center">序号</td>
                <td align="center">姓名</td>
                <td align="center">地址</td>
                <td align="center">电话</td>
            </tr>
            <tr>
                <td align="center"><input type="text" id="id" disabled="disabled" value="<c:out value='${resume.id}'/>"/></td>
                <td align="center"><input type="text" id="name" name="name" value="<c:out value='${resume.name}'/>"/></td>
                <td align="center"><input type="text" id="address" name="address" value="<c:out value='${resume.address}'/>"/></td>
                <td align="center"><input type="text" id="phone" name="phone" value="<c:out value='${resume.phone}'/>"/></td>
            </tr>
            <tr><button onclick="updateById()">提交</button></tr>
        </table>
    </div>
<script>
    function updateById() {
        var id=$("#id").val();
        var name = $("#name").val();
        var address = $("#address").val();
        var phone = $("#phone").val();
        var url = '/resume/updateResume?id=' + id + "&name=" + name + "&address=" + address + "&phone=" + phone;
        window.location.href=url;
    }
</script>
</body>
</html>
